//
//  HTTravelModel.m
//  HeartTravel
//
//  Created by lanou on 15/10/31.
//  Copyright © 2015年 陈文杰. All rights reserved.
//

#import "HTTravelModel.h"

@implementation HTTravelModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"id"]) {
        _id_name = value;
    }
}

- (void)setValue:(id)value forKey:(NSString *)key {
    
    if ([key isEqualToString:@"user"]) {
        _avatar_l = value[@"avatar_l"];
        _user_name = value[@"name"];
    } else {
        [super setValue:value forKey:key];
    }
    
}

@end
